package com.example.japinhands.route

sealed class Route(val route: String) {
    object Test : Route("Test")
    object NewSentence : Route("NewSentence")
    object ManageSentence : Route("ManageSentence")
    object ManageDeformAdj : Route("ManageDeformAdj")
    object NewDeformVerb : Route("NewDeformVerb")
    object NewDeformAdj : Route("NewDeformAdj")
    object NewWord : Route("NewWord")
    object TestManageWord : Route("TestManageWord")
    object ManageWord : Route("ManageWord")
    object Home : Route("Home")
    object WordDetail : Route("WordDetail/{wordId}") {
        fun createRoute(id: Long) = "WordDetail/$id"
    }

    object TestUpdateWord : Route("TestUpdateWord/{wordId}") {
        fun createRoute(id: Long) = "TestUpdateWord/$id"
    }
    object UpdateWord : Route("UpdateWord/{wordId}") {
        fun createRoute(id: Long) = "UpdateWord/$id"
    }
}